/*
 *      Created on: Mar 4, 2011
 *      Author: topcoder
 */

#ifndef LENGTH_H_
#define LENGTH_H_
#include <Quantity.h>
#include <LengthUnit.h>
#include <iostream>
using namespace std;

class Length:public Quantity
{
    public:
    Length(const unsigned int amount, const LengthUnit& lengthUnit);

    Length operator+(const Length& length)const;

    void  PrintInFormat1(ostream& os)const; 

    void  PrintInFormat2(ostream& os)const;

    private:
    void  PrintLength(ostream& os)const; 
   
};


#endif /* LENGTH_H_ */
